package com.yusys.jin.blog.util;

import java.io.Serializable;

public class ResponseResult<T> implements Serializable {

    /**
     *
     */


    private static final long serialVersionUID = 1L;
    private Integer state;
    private String message;
    private T data;


    public ResponseResult() {
        super();
    }

    public ResponseResult(String message) {
        super();
        this.message = message;
    }

    public ResponseResult(Integer state, String message) {
        super();
        this.state = state;
        this.message = message;
    }

    public ResponseResult(Integer state, T data) {
        super();
        this.state = state;
        this.data = data;
    }


    public ResponseResult(Integer state) {
        super();
        this.state = state;
    }

    public ResponseResult(String message, T data) {
        super();
        this.message = message;
        this.data = data;
    }

    public ResponseResult(Exception e) {
        super();
        this.message = e.getMessage();
    }

    public ResponseResult(Integer state, Exception e) {
        super();
        this.state = state;
        this.message = e.getMessage();
    }

    public ResponseResult(T data) {
        this.data = data;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


}
